package com.luoran.bartalks;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;


/**
 * @author lifetime
 *
 */
@SpringBootApplication
public class bartalksWebStart {

	public static void main(String[] args) {
		ConfigurableApplicationContext ctx = SpringApplication.run(bartalksWebStart.class, args);
		String[] activeProfiles = ctx.getEnvironment().getActiveProfiles();
		for (String profile : activeProfiles) {
			System.out.println("========【bartalks - Web】========= Spring Boot 使用profile为:" + profile);
		}
	}
}
